import {get, post} from "@/api"
import sysConfig from "@/config/index"
import {base64ToFile} from "@/utils/FileUtil";

const baseURL="/dev/file"
export function uploadFileByFile(file:File){
    return post(baseURL,"/uploadLocalReturnUrl",{
        file:file
    })
}
export function uploadFileByBase64(base64:string){
    return post(baseURL,"/uploadLocalReturnUrl",{
        file:base64ToFile(base64)
    })
}